import { formatPrice, PRODUCT_REGISTER_TYPE, PRODUCT_CATEGORY } from '@const/agencySaas'
export const returnOrderProductListColumns = [
  { minWidth: '150', prop: 'hospitalProductCode', label: '医院产品编码' },
  { minWidth: '150', prop: 'hospitalProductName', label: '医院产品名称' },
  { minWidth: '150', prop: 'specification', label: '医院产品规格型号', formatter: row => `${row.specification}  ${row.productType}` },
  { minWidth: '150', prop: 'manufacturer', label: '生产厂家' },
  { minWidth: '170', prop: 'registrationNumber', label: '注册证号（或备案号）' },
  { width: '120', prop: 'buyPrice', label: '单价', formatter: row => formatPrice(row.buyPrice) },
  { width: '155', prop: 'returnNum', label: '退货数量' },
  { width: '85', prop: 'minUnit', label: '计量单位' },
  { width: 100, prop: 'manageCategory', label: '管理分类' },
  { width: '80', prop: 'registerType', label: '注册地', formatter: row => PRODUCT_REGISTER_TYPE[row.registerType] },
  { width: '120', prop: 'category', label: '产品大类', formatter: row => PRODUCT_CATEGORY[row.category] },
  { minWidth: '120', prop: 'itemCode', label: '平台产品编码', showTooltipWhenOverflow: true },
  { minWidth: '140', prop: 'provinceProductCode', label: '省平台产品编码', showTooltipWhenOverflow: true },
  { width: 80, prop: 'action', label: '操作' }
]
